<?php
/**
  * 文章模型
  */ 
class ArticleModel extends CommonModel{

	protected $_validate=array(
		array('title','require','标题必须！',self::MODEL_BOTH),
		array('category_id','callbackCategory','请选择栏目',0,'callback',self::MODEL_BOTH)
		);

	protected $_auto=array(
		array('edit_time','time',self::MODEL_BOTH,'function'),
		array('add_time','callbackTime',self::MODEL_INSERT,'callback'),
	    array('seo_description','callbackDescription',self::MODEL_BOTH,'callback'),
	    array('brief','callbackBrief',self::MODEL_BOTH,'callback'),
	    array('status','callbackStatus',self::MODEL_UPDATE,'callback') 
		);

}
?>